<?php
/**
 * Created by xiaokengge
 * User: zhaoyu
 * Date: 2024/1/17
 * Time: 13:38
 *describe:****
 */

namespace app\common\model;


use think\Model;

class GoodsModel extends Model
{

    // 表名
    protected $name = 'goods';
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    // 追加属性
    protected $append = [
    ];

    public  function getImageAttr($value){
        return request()->domain().$value;
    }


}
